import { GOODS, GOODS_COLUMNS } from './api'
import { METHOD, request } from '@/utils/request'

export async function goodsList(params) {
  return request(GOODS, METHOD.GET, params)
}

export async function goodsColumns() {
  return request(GOODS_COLUMNS, METHOD.GET)
}

export async function queryKitInfoList(params) {
  return request("/api/kitInfo/queryKitInfoList", METHOD.POST, params)
}
export async function exportKitInfo(params) {
  return request("/api/kitInfo/exportKitInfo", METHOD.POST, params,{responseType: "arraybuffer"})
}
export async function deleteKitInfo(params) {
  return request("/api/kitInfo/deleteKitInfo", METHOD.POST, params)
}
export async function queryDetailsKitInfo(params) {
  return request("/api/kitInfo/queryDetailsKitInfo", METHOD.POST, params)
}
export async function queryDataByLocusName(params) {
  return request("/api/kitInfo/queryDataByLocusName", METHOD.POST, params)
}
export async function importKitInfo(params) {
  return request("/api/kitInfo/importKitInfo", METHOD.POST, params)
}



export default { goodsList, goodsColumns, importKitInfo,queryDataByLocusName,queryDetailsKitInfo,queryKitInfoList,exportKitInfo ,deleteKitInfo}